package com.linkage.lcims.base.po.cdma;

import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;


/**
 * CVpdnBindImsi entity. @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class CVpdnBindImsi  implements java.io.Serializable {


    // Fields    

     private CVpdnBindImsiPK comp_id;
     private Integer status;
     private Date opendate;
     private String openoperator;
     private Date moddate;
     private String modoperator;


    // Constructors

    /** default constructor */
    public CVpdnBindImsi() {
    }

	/** minimal constructor */
    public CVpdnBindImsi(CVpdnBindImsiPK comp_id, Date opendate, String openoperator) {
        this.comp_id = comp_id;
        this.opendate = opendate;
        this.openoperator = openoperator;
    }
    
    /** full constructor */
    public CVpdnBindImsi(CVpdnBindImsiPK comp_id, Integer status, Date opendate, String openoperator, Date moddate, String modoperator) {
        this.comp_id = comp_id;
        this.status = status;
        this.opendate = opendate;
        this.openoperator = openoperator;
        this.moddate = moddate;
        this.modoperator = modoperator;
    }

   
    // Property accessors

    public CVpdnBindImsiPK getComp_id() {
        return this.comp_id;
    }
    
    public void setComp_id(CVpdnBindImsiPK comp_id) {
        this.comp_id = comp_id;
    }

    public Integer getStatus() {
        return this.status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getOpendate() {
        return this.opendate;
    }
    
    public void setOpendate(Date opendate) {
        this.opendate = opendate;
    }

    public String getOpenoperator() {
        return this.openoperator;
    }
    
    public void setOpenoperator(String openoperator) {
        this.openoperator = openoperator;
    }

    public Date getModdate() {
        return this.moddate;
    }
    
    public void setModdate(Date moddate) {
        this.moddate = moddate;
    }

    public String getModoperator() {
        return this.modoperator;
    }
    
    public void setModoperator(String modoperator) {
        this.modoperator = modoperator;
    }
   
    public String toString() {
        return new ToStringBuilder(this)
            .append("comp_id", getComp_id())
            .toString();
    }

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((comp_id == null) ? 0 : comp_id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CVpdnBindImsi other = (CVpdnBindImsi) obj;
		if (comp_id == null) {
			if (other.comp_id != null)
				return false;
		} else if (!comp_id.equals(other.comp_id))
			return false;
		return true;
	}




}